﻿Imports System.Windows.Controls

Partial Public Class Maintenance
    Inherits Page

    Public Sub New()
        InitializeComponent()
    End Sub

    'Executes when the user navigates to this page.
    Protected Overrides Sub OnNavigatedTo(ByVal e As System.Windows.Navigation.NavigationEventArgs)

    End Sub

    Private Sub SavePagesButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles SavePagesButton.Click

        Me.SiteDomainDataSource.SubmitChanges()

    End Sub

    Private Sub SiteDomainDataSource_SubmittedChanges(ByVal sender As Object, ByVal e As System.Windows.Controls.SubmittedChangesEventArgs) Handles SiteDomainDataSource.SubmittedChanges
        If e.HasError Then

            ErrorWindow.CreateNew(e.Error)

        End If
    End Sub
End Class
